import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import ArticleList from '../views/ArticleList.vue'
import ArticleEditor from '../views/ArticleEditor.vue'
import PromptTemplateList from '../views/PromptTemplateList.vue'
import AIModelList from '../views/AIModelList.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/articles',
    name: 'ArticleList',
    component: ArticleList
  },
  {
    path: '/articles/new',
    name: 'NewArticle',
    component: ArticleEditor
  },
  {
    path: '/articles/:id/edit',
    name: 'EditArticle',
    component: ArticleEditor
  },
  {
    path: '/prompt-templates',
    name: 'PromptTemplates',
    component: PromptTemplateList
  },
  {
    path: '/ai-models',
    name: 'AIModels',
    component: AIModelList
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router 